Designing a time step
Now we will design a time step. This just mean writing down everything that happens each tick. This can be written as pseudo-code for a go procedure. For the fire model, this could be written as:
At each tick:
- If I'm a fire I light neighboring trees on fire and then turn to an ember
- If I'm an ember, I fade
Writing the behaviors at each tick from the perspective agents can make it easier to reason about, but you can use whatever phrasing makes the most sense to you.
Try writing pseudo-code for what should happen at each tick in the diffusion model.